import React, { Component } from 'react'
import events from '@/utils/EventBus'
export default class B extends Component {
  render() {
    return (
        <div style={{width:'200px',height:'200px',backgroundColor:'springgreen'}}>
          <button onClick={()=>{
            //emit(arg1,arg2) :arg1:事件名称  arg2:发送的信息
            events.emit('send',"前端16期信息")
          }}>发送信息</button>
        </div>
    )
  }
}
